<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="d" uri="http://claudiushauptmann.com/jsp-decorator/"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<d:decorate filename='../shared/user-masterpage.jsp'>
    <d:content placeholder='title'>Afeka Bid System :: Login</d:content>
    <d:content placeholder='body'>
        <c:choose>
            <c:when test="${succeedMessage == true}">
                User was successfully created
            </c:when>
            <c:otherwise>
                <form method="post">
                    <c:if test="${succeedMessage != null}">
                        <span style="color:red">${succeedMessage}</span>
                    </c:if>
                    <table class="center wide">
                        <tr>
                            <td>User Name</td>
                            <td><input type="text" name="username" required="true" /></td>
                        </tr>
                        <tr>
                            <td>Email</td>
                            <td><input type="text" name="email" required="true" /></td>
                        </tr>
                        <tr>
                            <td>User Name</td>
                            <td><input type="password" name="password" required="true" /></td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <input type="submit" value="Sign Up" />
                            </td>
                        </tr>
                    </table>
                </form>
            </c:otherwise>
        </c:choose>
    </d:content>
</d:decorate>